namespace CSharpPro._1013._1020;

//作业二
public class Student
{
    public string Name { get; set; }
    public int Age { get; set; }
    public string StudentId { get; set; }
    public double Score { get; set; }

    public Student(string name, int age, string studentId, double score)
    {
        Name = name;
        Age = age;
        StudentId = studentId;
        Score = score;
    }

    public void DisplayInfo()
    {
        Console.WriteLine($"学生姓名: {Name}");
        Console.WriteLine($"年龄: {Age}");
        Console.WriteLine($"学号: {StudentId}");
        Console.WriteLine($"成绩: {Score}");
        Console.WriteLine("-------------------");
    }

    public bool IsPass()
    {
        return Score >= 60;
    }
}